<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: Cube for iOS</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('index.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="PageDoc"><div class="header">
  <div class="headertitle">
<div class="title">Cube for iOS </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="md_README"></a> <b>Cube</b> <b>时信魔方</b> 是面向开发者的实时协作开发框架。帮助开发者快速、高效的在项目中集成实时协作能力。</p>
<p>支持的操作系统有：Windows、Linux 、macOS 、Android、iOS 等，支持的浏览器有：Chrome、Firefox、Safari 等。</p>
<h1><a class="anchor" id="autotoc_md1"></a>
简介</h1>
<p>TODO</p>
<h1><a class="anchor" id="autotoc_md2"></a>
功能列表</h1>
<p>Cube 包含以下协作功能：</p>
<ul>
<li>即时消息（Instant Messaging / IM）。支持卡片消息、通知消息、文件消息和自定义消息等。</li>
<li>实时多人语音/多人视频（Multipoint RTC）。支持自适应码率、超低延迟等，支持实时图像识别等。</li>
<li>超大规模(100+)会议 （Video Conference）。支持会议控制、演讲模式，自定义 MCU 和 SFU 布局等。</li>
<li>群组管理（Group management）。支持集成式管理和扩展组织架构等。</li>
<li>共享桌面（Remote Desktop Sharing）。支持无缝集成白板等。</li>
<li>云端文件存储（Cloud File Storage）。支持无缝集成文档在线协作等。</li>
<li>实时白板（Realtime Whiteboard）。支持集成媒体回放、远程桌面和文档分享等。</li>
<li>视频直播（Live video）。支持第三方推流和 CDN ，无缝支持会议直播和回放等。</li>
<li>互动课堂（Online Classroom）。支持实时课堂互动和在线习题、考试。</li>
<li>电子邮件管理与代收发（Email management）。</li>
<li>在线文档协作（Online Document Collaboration）。支持 Word、PowerPoint、Excel 等主流格式文多人在写协作。</li>
<li>安全与运维管理（Operation and Maintenance management）。所有数据通道支持加密，可支持国密算法等。</li>
<li>风控管理（Risk Management）。对系统内所有文本、图片、视频、文件等内容进行包括 NLP、OCR、IR 等技术手段的风险控制和预警等。</li>
</ul>
<h1><a class="anchor" id="autotoc_md3"></a>
快速集成</h1>
<p>1.下载cube源码工程到你本地,运行cube源码工程文件,找到工程Products文件夹CServiceSuite.framework右键show in finder找到编译完成的cube库.</p>
<p>2.将上一步得到的cube库通过右键Add Files to "Your project"添加到你的工程文件中,然后选中project-&gt;target,找到Build phases栏使用“+”号增加Embed Frameworks Destination选择Frameworks使用下方的“+”号添加刚才加入到你工程文件中的cube库.</p>
<h1><a class="anchor" id="autotoc_md4"></a>
如何使用</h1>
<p>你可以参照源码demo工程的方式引入并使用cube库.</p>
<p>或者使用如下方式:</p>
<p>在你的工程pch文件使用以下方式导入引擎库头文件</p>
<div class="fragment"><div class="line">#import &lt;CServiceSuite/CServiceSuite.h&gt;</div>
</div><!-- fragment --><p>配置cube</p>
<div class="fragment"><div class="line">CKernelConfig *config = [[CKernelConfig alloc] init];</div>
<div class="line">config.domain = @&quot;shixincube.com&quot;;</div>
<div class="line">config.appKey = @&quot;shixin-cubeteam-opensource-appkey&quot;;</div>
<div class="line">config.address = @&quot;192.168.1.113&quot;;</div>
<div class="line">[[CEngine shareEngine] startWithConfig:config];</div>
</div><!-- fragment --><p>登入账户</p>
<div class="fragment"><div class="line">[[CEngine shareEngine] signIn:@&quot;102030405&quot; name:@&quot;MyApp用户的显示名&quot;]; </div>
</div><!-- fragment --><p>消息发送</p>
<div class="fragment"><div class="line">CMessageService *messageService = (CMessageService *)[[CKernel shareKernel] getModule:CMessageService.mName];</div>
<div class="line">CMessage *message = [[CMessage alloc] initWithPayload:@{@&quot;content&quot;:content}];</div>
<div class="line">[messageService sendToContact:@&quot;908070605&quot; message:message];</div>
</div><!-- fragment --><p>更多功能请参照Cube手册和api文档</p>
<h1><a class="anchor" id="autotoc_md5"></a>
功能展示</h1>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">即时消息    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/im.gif" alt="IM" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">视频聊天(1)   </th><th class="markdownTableHeadCenter">视频聊天(2)    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/videochat_1.gif" alt="VideoChat1" class="inline"/>   </td><td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/videochat_2.gif" alt="VideoChat2" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">多人视频聊天(1)   </th><th class="markdownTableHeadCenter">多人视频聊天(2)    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/videochat_3.gif" alt="VideoChat3" class="inline"/>   </td><td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/videochat_4.gif" alt="VideoChat4" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">会议    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/screen_conference.jpg" alt="Conf100" class="inline"/>    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/screen_conference_tile.jpg" alt="ConfTile" class="inline"/>    </td></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/start_conference.gif" alt="StartConf" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">共享桌面    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/screen_sharing.gif" alt="ScreenSharing" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">云端文件存储    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/cloud_file.gif" alt="CFS" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">白板    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/whiteboard.gif" alt="Whiteboard" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">直播    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/live.gif" alt="Live" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">在线课堂    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/online_classroom.gif" alt="OnlineClassroom" class="inline"/>   </td></tr>
</table>
<table class="markdownTable">
<tr class="markdownTableHead">
<th class="markdownTableHeadCenter">文档协作    </th></tr>
<tr class="markdownTableRowOdd">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/doc_collaboration_excel.gif" alt="DocCollaboration" class="inline"/>    </td></tr>
<tr class="markdownTableRowEven">
<td class="markdownTableBodyCenter"><img src="https://static.shixincube.com/cube/assets/showcase/doc_collaboration.gif" alt="DocCollaboration" class="inline"/>   </td></tr>
</table>
<h1><a class="anchor" id="autotoc_md6"></a>
获得帮助</h1>
<p>您可以访问 <a href="https://www.shixincube.com/">时信魔方官网</a> 获得更多信息。如果您在使用 Cube 的过程中需要帮助可以发送邮件到 <a href="#" onclick="location.href='mai'+'lto:'+'cub'+'e@'+'spa'+'p.'+'com'; return false;">cube@spap.com</a> 。 </p>
</div></div><!-- PageDoc -->
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
